package com.sc;

public class Demo2 {

    public static void main(String[] args) {
//        cardNumberSpace();
//        String s = "1.2.4b";
//        String[] strings = s.split("\\.");
//        for (String string : strings) {
//            System.out.println(string);
//        }

        double a, b;

//        System.out.println(a + "");
//        System.out.println(b + "");

//        System.out.println(System.currentTimeMillis());
    }

    private static void cardNumberSpace() {
        String cardNum = "62261234783291833";
        StringBuffer encrypt = new StringBuffer(cardNum);
        for (int i = 0; i <= cardNum.length() / 4; i++) {
            if (cardNum.length() - (4 * i) > 0) {
                encrypt.insert(cardNum.length() - (4 * i), " ");
            }
        }
        System.out.println(encrypt);
    }
}
